package org.liang.common.core.constant;

/**
 * 缓存的Key 常量
 * @author LiangL liang_work2020@163.com
 * @date 2021/4/1 9:48 下午
 */
public class CacheConstants {

    /** 令牌自定义标识 */
    public static final String HEADER = "Authorization";
    /** 令牌前缀 */
    public static final String TOKEN_PREFIX = "Bearer ";

    /** 权限缓存前缀 */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";
    /** 授权信息字段 */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /** 用户ID字段 */
    public static final String DETAILS_USER_ID = "user_id";
    /** 用户名字段 */
    public static final String DETAILS_USERNAME = "username";

}
